/**
 * JavaScript Document
 * @author sijian zhang
 */

function deBug(msg){
	var outputPlan = document.getElementById("deBugOutput");
	if(outputPlan){
    	outputPlan.innerHTML = "<p>" + msg +"</p>" + outputPlan.innerHTML ;
	}
	else{
		var output = document.createElement("DIV");
		output.id = "deBugOutput";
		output.style.overflow = "auto";
		output.style.border = "1px solid green";
		output.style.background = "#ffffff";
		output.style.position = "absolute";
		output.style.right = "0px";
		output.style.top = "0px";
		output.style.height = "100px";
		output.style.width = "300px";
		output.innerHTML = "<p>" +msg +"</p>";
		document.getElementsByTagName("BODY")[0].appendChild(output)
	}
}